home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 1
/
Atari Mega Archive - Volume 1.iso
/
telecomm
/
sticpsrc.lzh
/
DOC
/
NODE.ARC
/
NODE.DOC
next >
Wrap
Text File
|
1990-06-23
|
17KB
|
552 lines
06601030305800
F0110030
9[...................................................]001
ëConfiguringaremote-controllednodeusingNET.PE1CHLÇ
BecausesomenodesarenowconvertingfromNET/ROMrunningona
TNC2clonetoaPCorAtariST,usinganSCC(8530)boardand
runningTCP/IPNET,someguidelinesarecollectedinthis
documenttohelpconfigurationofsuchanode.
üAuto-startofprogramÇ
Thesystemmustbeconfiguredinsuchaway,thatitwill
automaticallystarttheNETprogramwhenpowered-uporRESET,and
willre-startwhenevertheNETprogramexits.Thiscanbeeasily
accomplished:
-AtariSTsystems:
Createafolder(directory)onthestartupdisk,namedAUTO.
CopytheNETprogramintothisfolder,andnameit"NET.PRG"
(notNET.TOS,asitisnormallydistributed).
Afterthat,copyaprogramintotheAUTOfolderthatwill
rebootthemachine.Suchprogramsareavailableinthe
publicdomain,andcanbeobtainedfromPE1CHLtoo.
-MS-DOSsystems:
AttheendoftheAUTOEXEC.BATfileonthestartupdisk,put
the"NET"commandtostart"NET.EXE",andonthefollowing
lineputacommandtore-bootthesystem.Programstodo
thatareavailableinthepublicdomain,andareusually
calledsomethinglike"BOOT.COM","REBOOT.COM"etc.Youcan
createyourown"BOOT.COM"bycreatingafilewiththe5-
bytesequence"EA0000FFFF",usingDEBUG.
Theeffectoftheabovesetupisthesameforbothmachines:
duringthestartupproceduretheNETprogramisstarted,andit
normallystaysrunning(i.e.thestartupprocedurenever
terminates).ShouldtheNETprogrameverexit,thenextlinein
theprocedure(orthenextprogramintheAUTOfolder)will
rebootthemachine,andtheNETprogramwillbere-started.
üWatchdogÇ
Intheeventofaprogramcrash,itisveryinconvenienttohave
toresetthemachinemanually.Programcrashesoccurinfre⑨
quently,andonlywhennooperatoriswatching.
Theprogramhasafeaturethatallowstheconnectionofa
hardwarewatchdogcircuit,thatwillRESETthemachinewhenthe
programseemstohang.
Theprincipleofsuchacircuit,istogenerateaRESETpulse
whennoactivityhasbeensensedontheinputofthecircuit
duringacertainintervaloftime.Theprogramcangeneratea
Çpulseonsomeoutputpin(e.g.aDATAlineoftheparallel
printerport)ateachpassthroughthemainloop.
ItisalsopossibletoconnectthePTToutputofachannelto
suchacircuit,becausethechannelwillalwaystransmitthe
nodelistatfixedintervals,sothenodehascrashedwhenthe
transmitterisnotactivatedforalongtime.
FortheAtariversionoftheprogram,thewatchdogcommandalso
allowsthedefinitionofasoftwaretimeoutthatwillcausea
RESETofthemachineafteracertainperiodofinactivity,
withoutrequiringexternalhardware.Thismethodprovidessome
protectionagainstcrashes,butislessreliablethanthe
hardware-assistedapproach.
Thecommandtoactivatethewatchdogpulsesis:
-AtariSTsystems:
watchdog18060001
Thisenables2formsofwatchdog:
1.Asoftwaretimerthatwillresetthemachinewhenno
activityhasoccurredfor180seconds(orfor600
secondswhena"shell"commandhasbeengiven).
2.Anpulseoutputwillbegivenonthelowestbit(D0)of
theparallelprinteroutputateachpassthroughthe
programloop.Otheroutputscanbeselectedbyspeci⑨
fyingadifferent3rdparameter.Avalueof00forthe
3rdparameterwilldisablethepulsesontheparallel
output.
-MS-DOSsystems:
watchdogxxxxx
üExampleconfigurationfilesÇ
Below,theconfigurationfilesinuseatPI8NOS(asofJune1990)
arelisted.Thesearereal-lifeconfigurationfiles,thathave
beeninuseandhavebeenmaintainedfornearlyayear.
ThehardwareinuseatPI8NOSisanAtariMega-ST2,withan8-
channelSCCinterfaceanda300baudmodemconnectedtotheAUX
(RS232)port.
----------------------------------------------------------------
AUTOEXEC.NET
----------------------------------------------------------------
# NET configuration file for PI8NOS network station in Hilversum
# uses special SCC interface board with 4 Z8530s installed
# AUX (rs232) is used as a connection to an async modem for remote control
Ç# MIDI is not used
# Drive A: is a 720K floppy, drive G: is a 1MB RAMDisk
#
setenv NETDISK a:
setenv RAMDISK g:
#
# define buffers for use by SCC driver
memstat 100000
buffers 64 2 128
#
# attach commands for SCC driver. first init, then attach the channels.
attach scc 4 init fffd00 8 3 7 -2 fffd3f 3 p4915200
# 4 thru 7 are spare channels
#attach scc 7 ax25 ax3 256 d4800 pi8nos-8
#attach scc 6 ax25 ax2 256 d4800 pi8nos-7
#attach scc 5 ax25 ax1 256 d4800 pi8nos-6
#attach scc 4 ax25 ax0 256 d4800 pi8nos-5
# 3 is west-link on 430.800
attach scc 3 ax25 ln.w 256 d1200 pi8nos-4
# 2 is south-link on 1299.900
attach scc 2 ax25 ln.s 256 d1200 pi8nos-3
# 1 is east-link on 1240.400/1299.400
attach scc 1 ax25 ln.e 256 d1200 pi8nos-2
# 0 is north-link on 1240.800
attach scc 0 ax25 ln.n 256 d1200 pi8nos-1
#
# attach the NET/ROM interface & set the call to be used by NET/ROM level 3
#
attach netrom pi8nos
#
# filtering of unwanted AX.25 stations
#
ax25 exclude nocall
ax25 exclude pi8nos
#
# setup some directories and files. RAMDisk is faster so transfer commonly
# used files like HOSTS.NET to it. FTP public area is also on RAMDisk, and
# is initialized with some of our configuration files.
#
cd ${NETDISK}\net
mkdir -f ${RAMDISK}\tmp ${RAMDISK}\net ${RAMDISK}\net\mqueue ${RAMDISK}\public
#
copy $NETHOSTS ${RAMDISK}\net\hosts.net
setenv NETHOSTS ${RAMDISK}\net\hosts.net
#
setenv TMPDIR ${RAMDISK}\tmp
setenv TMP $TMPDIR
del -f $TMPDIR\*.*
#
copy ${NETMAILQ}*.* ${RAMDISK}\net\mqueue
del -f ${NETMAILQ}*.txt ${NETMAILQ}*.wrk ${NETMAILQ}*.lck
setenv NETMAILQ ${RAMDISK}\net\mqueue\
del -f ${NETMAILQ}*.lck
#
Çcopy ${NETDISK}\net\nr_info.txt ${RAMDISK}\net
copy alias $NETHOSTS routes.net finger\*.txt ${RAMDISK}\public
setenv ENVSTYLE
setenv TIMEZONE MET:0
shell =${NETDISK}\arc.ttp
#
# remainder of configuration
#
source config.net
#
# Addresses, IP routing table and ARP commands, Misc
#
hostname pi8nos.ampr.org
ip address pi8nos
source routes.net
log ${NETDISK}\net\net.log startup
log proc
watchdog 120 600 1
#
# NET/ROM configuration. Filtering and routes are in NETROM.NET
#
netrom info ${RAMDISK}\net\nr_info.txt
netrom interface ln.n "HVS" 224
netrom interface ln.s "HVS" 224
netrom interface ln.e "HVS" 220
netrom interface ln.w "HVS" 192 lap
netrom tcpip link "#TCPIP"
source netrom.net
netrom route save ${RAMDISK}\net\netrom.rts
source ${RAMDISK}\net\netrom.rts
#
# KISS and AX25 stuff for each TNC connected
#
mheard ln.n 23
mheard ln.s 23
mheard ln.e 23
mheard ln.w 23
ax25 digipeat ln.n gate
ax25 digipeat ln.s gate
ax25 digipeat ln.e gate
ax25 digipeat ln.w gate
#ax25 persist ln.n 128 5 128 60 900
#ax25 persist ln.s 128 5 128 60 900
#ax25 persist ln.e 128 5 128 60 900
ax25 persist ln.w 128 24 64 60 900
#
# AX25 ports. 1=TNC 2=NetDigi 3=MHEARD 4=Bridge
#
ax25 port 2 digi pi8nos-9 ln.n gate
ax25 port 2 digi pi8nos-10 ln.e gate
ax25 port 2 digi pi8nos-11 ln.s gate
ax25 port 2 digi pi8nos-12 ln.w gate
ax25 port 3 conn pi8nos-9 ln.n multi
ax25 port 3 conn pi8nos-10 ln.e multi
Çax25 port 3 conn pi8nos-11 ln.s multi
ax25 port 3 conn pi8nos-12 ln.w multi
ax25 port 4 conn pi8nos-15
ax25 port 6 conn pi8nos-14
#
# SCC driver interface groups
#
param ln.n group 001
param ln.s group 106
param ln.e group 103
p